<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.15"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Pepr3D: D:/Home/MFF/1-Mgr/projekt/pepr3d/src/geometry/PolyhedronData.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  $(document).ready(initResizable);
/* @license-end */</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="pepr3d_icon.svg"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Pepr3D
   &#160;<span id="projectnumber">v1.0</span>
   </div>
   <div id="projectbrief">Pepr3D is a 3D graphics editor designed for FDM printing</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.15 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('_polyhedron_data_8h_source.html','');});
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">PolyhedronData.h</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="preprocessor">#pragma once</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;</div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="preprocessor">#include &lt;CGAL/Surface_mesh.h&gt;</span></div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="preprocessor">#include &quot;geometry/Triangle.h&quot;</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;</div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespacepepr3d.html">pepr3d</a> {</div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;</div><div class="line"><a name="l00009"></a><span class="lineno"><a class="line" href="structpepr3d_1_1_polyhedron_data.html">    9</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structpepr3d_1_1_polyhedron_data.html">PolyhedronData</a> {</div><div class="line"><a name="l00012"></a><span class="lineno"><a class="line" href="structpepr3d_1_1_polyhedron_data.html#a83aa9807ec5b6b95395d281dfe788086">   12</a></span>&#160;    std::vector&lt;glm::vec3&gt; <a class="code" href="structpepr3d_1_1_polyhedron_data.html#a83aa9807ec5b6b95395d281dfe788086">vertices</a>;</div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;</div><div class="line"><a name="l00015"></a><span class="lineno"><a class="line" href="structpepr3d_1_1_polyhedron_data.html#a9cd3b6704df3fb8caae2bd938e6d7de8">   15</a></span>&#160;    std::vector&lt;std::array&lt;size_t, 3&gt;&gt; <a class="code" href="structpepr3d_1_1_polyhedron_data.html#a9cd3b6704df3fb8caae2bd938e6d7de8">indices</a>;</div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;</div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;    <span class="keyword">using</span> Mesh = CGAL::Surface_mesh&lt;DataTriangle::K::Point_3&gt;;</div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;    <span class="keyword">using</span> vertex_descriptor = Mesh::Vertex_index;</div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;    <span class="keyword">using</span> face_descriptor = Mesh::Face_index;</div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;    <span class="keyword">using</span> edge_descriptor = Mesh::Edge_index;</div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;    <span class="keyword">using</span> halfedge_descriptor = Mesh::Halfedge_index;</div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;</div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;    <span class="keywordtype">bool</span> isSdfComputed = <span class="keyword">false</span>;</div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;    <span class="keywordtype">bool</span> valid = <span class="keyword">false</span>;</div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;    <span class="keywordtype">bool</span> sdfValuesValid = <span class="keyword">true</span>;</div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;</div><div class="line"><a name="l00028"></a><span class="lineno"><a class="line" href="structpepr3d_1_1_polyhedron_data.html#ae8ef78643a8d1f2de16d90b3c6d401ea">   28</a></span>&#160;    PolyhedronData::Mesh::Property_map&lt;PolyhedronData::face_descriptor, size_t&gt; <a class="code" href="structpepr3d_1_1_polyhedron_data.html#ae8ef78643a8d1f2de16d90b3c6d401ea">mIdMap</a>;</div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;</div><div class="line"><a name="l00032"></a><span class="lineno"><a class="line" href="structpepr3d_1_1_polyhedron_data.html#a18c628197dc544d7a79b636792783c31">   32</a></span>&#160;    PolyhedronData::Mesh::Property_map&lt;PolyhedronData::face_descriptor, double&gt; <a class="code" href="structpepr3d_1_1_polyhedron_data.html#a18c628197dc544d7a79b636792783c31">sdf_property_map</a>;</div><div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;</div><div class="line"><a name="l00035"></a><span class="lineno"><a class="line" href="structpepr3d_1_1_polyhedron_data.html#a405c876987a078bc168f267972b46514">   35</a></span>&#160;    std::vector&lt;PolyhedronData::face_descriptor&gt; <a class="code" href="structpepr3d_1_1_polyhedron_data.html#a405c876987a078bc168f267972b46514">mFaceDescs</a>;</div><div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;</div><div class="line"><a name="l00038"></a><span class="lineno"><a class="line" href="structpepr3d_1_1_polyhedron_data.html#a27477466ca362daaf66ed853405cf959">   38</a></span>&#160;    Mesh <a class="code" href="structpepr3d_1_1_polyhedron_data.html#a27477466ca362daaf66ed853405cf959">mMesh</a>;</div><div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;};</div><div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;</div><div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;}  <span class="comment">// namespace pepr3d</span></div><div class="ttc" id="structpepr3d_1_1_polyhedron_data_html_a27477466ca362daaf66ed853405cf959"><div class="ttname"><a href="structpepr3d_1_1_polyhedron_data.html#a27477466ca362daaf66ed853405cf959">pepr3d::PolyhedronData::mMesh</a></div><div class="ttdeci">Mesh mMesh</div><div class="ttdoc">The data-structure itself.</div><div class="ttdef"><b>Definition:</b> PolyhedronData.h:38</div></div>
<div class="ttc" id="structpepr3d_1_1_polyhedron_data_html_ae8ef78643a8d1f2de16d90b3c6d401ea"><div class="ttname"><a href="structpepr3d_1_1_polyhedron_data.html#ae8ef78643a8d1f2de16d90b3c6d401ea">pepr3d::PolyhedronData::mIdMap</a></div><div class="ttdeci">PolyhedronData::Mesh::Property_map&lt; PolyhedronData::face_descriptor, size_t &gt; mIdMap</div><div class="ttdoc">Map converting a face_descriptor into an ID, that corresponds to the mTriangles vector.</div><div class="ttdef"><b>Definition:</b> PolyhedronData.h:28</div></div>
<div class="ttc" id="namespacepepr3d_html"><div class="ttname"><a href="namespacepepr3d.html">pepr3d</a></div><div class="ttdoc">Fix for CGAL bugs in polygon with holes verification Contained in CGAL PR #3688, likely to be in 4....</div><div class="ttdef"><b>Definition:</b> CmdColorManager.h:9</div></div>
<div class="ttc" id="structpepr3d_1_1_polyhedron_data_html_a18c628197dc544d7a79b636792783c31"><div class="ttname"><a href="structpepr3d_1_1_polyhedron_data.html#a18c628197dc544d7a79b636792783c31">pepr3d::PolyhedronData::sdf_property_map</a></div><div class="ttdeci">PolyhedronData::Mesh::Property_map&lt; PolyhedronData::face_descriptor, double &gt; sdf_property_map</div><div class="ttdoc">Map converting a face_descriptor into the SDF value of the given face. Note: the SDF values are linea...</div><div class="ttdef"><b>Definition:</b> PolyhedronData.h:32</div></div>
<div class="ttc" id="structpepr3d_1_1_polyhedron_data_html"><div class="ttname"><a href="structpepr3d_1_1_polyhedron_data.html">pepr3d::PolyhedronData</a></div><div class="ttdoc">CGAL Polyhedron data of the Geometry.</div><div class="ttdef"><b>Definition:</b> PolyhedronData.h:9</div></div>
<div class="ttc" id="structpepr3d_1_1_polyhedron_data_html_a405c876987a078bc168f267972b46514"><div class="ttname"><a href="structpepr3d_1_1_polyhedron_data.html#a405c876987a078bc168f267972b46514">pepr3d::PolyhedronData::mFaceDescs</a></div><div class="ttdeci">std::vector&lt; PolyhedronData::face_descriptor &gt; mFaceDescs</div><div class="ttdoc">A &quot;map&quot; converting the ID of each triangle (from mTriangles) into a face_descriptor.</div><div class="ttdef"><b>Definition:</b> PolyhedronData.h:35</div></div>
<div class="ttc" id="structpepr3d_1_1_polyhedron_data_html_a9cd3b6704df3fb8caae2bd938e6d7de8"><div class="ttname"><a href="structpepr3d_1_1_polyhedron_data.html#a9cd3b6704df3fb8caae2bd938e6d7de8">pepr3d::PolyhedronData::indices</a></div><div class="ttdeci">std::vector&lt; std::array&lt; size_t, 3 &gt; &gt; indices</div><div class="ttdoc">Indices to triangles of the polyhedron. Indices are stored in a CCW order, as imported from Assimp.</div><div class="ttdef"><b>Definition:</b> PolyhedronData.h:15</div></div>
<div class="ttc" id="structpepr3d_1_1_polyhedron_data_html_a83aa9807ec5b6b95395d281dfe788086"><div class="ttname"><a href="structpepr3d_1_1_polyhedron_data.html#a83aa9807ec5b6b95395d281dfe788086">pepr3d::PolyhedronData::vertices</a></div><div class="ttdeci">std::vector&lt; glm::vec3 &gt; vertices</div><div class="ttdoc">Vertex positions after joining all identical vertices. This is after removing all other componens and...</div><div class="ttdef"><b>Definition:</b> PolyhedronData.h:12</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_405fd32de3649961a5f009c7a3fe84df.html">geometry</a></li><li class="navelem"><b>PolyhedronData.h</b></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.15 </li>
  </ul>
</div>
</body>
</html>
